package net.dfrz.oa.utils;

import java.io.Serializable;
import java.util.List;

/**
 * 分页Bean
 * @author vovh
 *
 */
public class PageBean<T> implements Serializable{

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	private static final int MAX_SIZE_DATA = 10;
	private int pageNo = 1;
	private int pageSize = MAX_SIZE_DATA;
	private List<T> result = null;
	private int totalCount = 0;
	
	
	public PageBean() {
		super();
	}

	public PageBean(int pageNo, int pageSize) {
		super();
		this.pageNo = pageNo;
		this.pageSize = pageSize;
	}

	public int getPageNo() {
		return pageNo;
	}

	public void setPageNo(int pageNo) {
		this.pageNo = pageNo;
	}

	public int getPageSize() {
		return pageSize;
	}

	public void setPageSize(int pageSize) {
		this.pageSize = pageSize;
	}

	public List<T> getResult() {
		return result;
	}

	public void setResult(List<T> result) {
		this.result = result;
	}

	public int getTotalCount() {
		return totalCount;
	}

	public void setTotalCount(int totalCount) {
		this.totalCount = totalCount;
	}

}
